package cn.jit.ssm.beans.entity;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.util.Date;

public class JitAccount {
    private Long acctId;

    private String acctName;

    @NotNull
    @Length(max = 20,min = 4,message = "{account.username.length.limit}")
    private String acctNickname;

    @NotNull
    @Length(max = 20,min = 4,message = "{account.password.length.limit}")
    private String acctPassword;

    private Integer acctState;

    private Boolean acctSuper;

    private Boolean acctDeleteState;

    private Date createTime;

    private String creator;

    private Date lastModifyTime;

    public Long getAcctId() {
        return acctId;
    }

    public void setAcctId(Long acctId) {
        this.acctId = acctId;
    }

    public String getAcctName() {
        return acctName;
    }

    public void setAcctName(String acctName) {
        this.acctName = acctName == null ? null : acctName.trim();
    }

    public String getAcctNickname() {
        return acctNickname;
    }

    public void setAcctNickname(String acctNickname) {
        this.acctNickname = acctNickname == null ? null : acctNickname.trim();
    }

    public String getAcctPassword() {
        return acctPassword;
    }

    public void setAcctPassword(String acctPassword) {
        this.acctPassword = acctPassword == null ? null : acctPassword.trim();
    }

    public Integer getAcctState() {
        return acctState;
    }

    public void setAcctState(Integer acctState) {
        this.acctState = acctState;
    }

    public Boolean getAcctSuper() {
        return acctSuper;
    }

    public void setAcctSuper(Boolean acctSuper) {
        this.acctSuper = acctSuper;
    }

    public Boolean getAcctDeleteState() {
        return acctDeleteState;
    }

    public void setAcctDeleteState(Boolean acctDeleteState) {
        this.acctDeleteState = acctDeleteState;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator == null ? null : creator.trim();
    }

    public Date getLastModifyTime() {
        return lastModifyTime;
    }

    public void setLastModifyTime(Date lastModifyTime) {
        this.lastModifyTime = lastModifyTime;
    }
}